Filter hook 'edit_user_{$field}'
in WP Core File wp-includes/user.php at line 1825
Description
Filters a user field value in the 'edit' context. The dynamic portion of the hook name, `$field`, refers to the prefixed user field being filtered, such as 'user_login', 'user_email', 'first_name', etc.
Occurrences
Filename |
Line Number |
wp-includes/user.php |
1825 |
Parameters
Type |
Name |
Description |
mixed |
$value |
Value of the prefixed user field. |
int |
$user_id |
User ID. |
PHP Doc
/**
* Filters a user field value in the 'edit' context.
*
* The dynamic portion of the hook name, `$field`, refers to the prefixed user
* field being filtered, such as 'user_login', 'user_email', 'first_name', etc.
*
* @since 2.9.0
*
* @param mixed $value Value of the prefixed user field.
* @param int $user_id User ID.
*/